From: Florian Müllner Date: Fri, 2 Sep 2022 16:46:13 +0000 (+0200) Subject: st/label: Don't guard against NULL text X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~452^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=329a28630312040e3a9da118772fb4452dc01717;p=gnome-shell.git st/label: Don't guard against NULL text Commit 9168f6055e marked the parameter as nullable, which is in conflict with the precondition check. But given that NULL is valid for the underlying ClutterText (and GtkLabel accepts it as well), there's no strong argument for disallowing NULL, so remove the precondition check. Part-of: --- diff --git a/src/st/st-label.c b/src/st/st-label.c index e9893fe01..fe77743c4 100644 --- a/src/st/st-label.c +++ b/src/st/st-label.c @@ -409,7 +409,6 @@ st_label_set_text (StLabel *label, ClutterText *ctext; g_return_if_fail (ST_IS_LABEL (label)); - g_return_if_fail (text != NULL); priv = label->priv; ctext = CLUTTER_TEXT (priv->label);